home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 April / EnigmA AMIGA RUN 06 (1996)(G.R. Edizioni)(IT)[!][issue 1996-04][Skylink CD V].iso / progs / editor / bed / support / startup.dfn < prev   
Text File  |  1996-03-02  |  14KB  |  436 lines

  1. ;------------------------------------------------------------------------------
  2. ;
  3. ; $VER: Startup.dfn 1.0 (03.03.96)
  4. ;
  5. ; Startup BED definitions file.
  6. ;
  7. ; This file is loaded at the startup of the program.
  8. ; Deel free to modify it as you like, to suit your needs.
  9. ; The default internal definitions of BED are kept in "Standard.dfn"
  10. ;
  11. ; By Marco Negri
  12. ;
  13. ;------------------------------------------------------------------------------
  14.  
  15. ;------------------------------------------------------------------------------
  16. ;
  17. ;  Synopsis:
  18. ;
  19. ;   MENU <label>
  20. ;     ITEM <label> <shortcut> <command> <arguments>
  21. ;     ITEM ...
  22. ;     ITEM ...
  23. ;     BAR
  24. ;     ITEM ...
  25. ;       SUB <label> <shortcut> <command> <arguments>
  26. ;       SUB ...
  27. ;
  28. ;   MENU ...
  29. ;
  30. ;   etc.
  31. ;
  32. ;------------------------------------------------------------------------------
  33.  
  34. MENUS:
  35.  
  36.   MENU  "File"
  37.     ITEM  "New Doc"            "W" OpenDoc
  38.     ITEM  "Clear File"         ""  ClearFile
  39.     BAR
  40.     ITEM  "Open File..."       "O" OpenFile
  41.     ITEM  "Open New Doc..."    "D" OpenDoc FILEREQ
  42.     ITEM  "Insert File..."     ""  InsertFile
  43.     BAR
  44.     ITEM  "Save File"          "S" SaveFile
  45.     ITEM  "Save File As..."    "A" SaveFileAs
  46.     ITEM  "Save & Close"       ""  ExecARexxString "SaveFile MODIFIED QUIET; CloseDoc;"
  47.     BAR
  48.     ITEM  "Print File..."      ""  PrintFile
  49.     BAR
  50.     ITEM  "Close Doc"          "Q" CloseDoc
  51.     ITEM  "Quit"               ""  Quit
  52.  
  53.   MENU "Window"
  54.     ITEM  "Select..."          ""  ExecARexxMacro WINDOW=CON:////Select.../SCREEN* BED:Rexx/SelectDoc.bed
  55.     BAR
  56.     ITEM  "Minimize"           ""  SizeWindow 0 0
  57.     ITEM  "Maximize"           ""  SizeWindow 10000 10000
  58.     ITEM  "Normalize"          ""  SetWindowSpec
  59.     BAR
  60.     ITEM  "Snapshot"           ""  ExecARexxString "OPTIONS RESULTS; GetWindowSpec; SetPrefs DefaultWindow RESULT;"
  61.     BAR
  62.     ITEM  "Iconify"            ""  IconifyWindow TOGGLE
  63.     ITEM  "Iconify All"        ""  ExecARexxMacro BED:Rexx/OrganizeWindows.bed ICONIFY
  64.     ITEM  "Tile"               ""  ExecARexxMacro BED:Rexx/OrganizeWindows.bed TILE
  65.     ITEM  "Stack"              ""  ExecARexxMacro BED:Rexx/OrganizeWindows.bed STACK
  66.     ITEM  "Cascade"            ""  ExecARexxMacro BED:Rexx/OrganizeWindows.bed CASCADE
  67.     BAR
  68.     ITEM  "Open Desktop..."    ""  ExecARexxMacro BED:Rexx/LoadDesktop.bed
  69.     ITEM  "Save Desktop As..." ""  ExecARexxMacro BED:Rexx/SaveDesktop.bed
  70.  
  71.   MENU  "Edit"
  72.     ITEM  "Mark Block"         "B" MarkBlk
  73.     BAR
  74.     ITEM  "Select Word"        ""  MarkBlk WORD
  75.     ITEM  "Select Line"        "E" SelectLine
  76.     ITEM  "Select All"         "T" ExecARexxString "MoveSOF; MarkBlk; MoveEOF;"
  77.     BAR
  78.     ITEM  "Cut"                "X" CutBlk
  79.     ITEM  "Copy"               "C" CopyBlk
  80.     ITEM  "Paste"              "V" PasteClip
  81.     ITEM  "Erase"              ""  DeleteBlk QUIET
  82.     BAR
  83.     ITEM  "Cut Append"         ""  CutBlk APPEND
  84.     ITEM  "Copy Append"        "Z" CopyBlk APPEND
  85.     BAR
  86.     ITEM  "Open Clip..."       ""  OpenClip
  87.     ITEM  "Save Clip As..."    ""  SaveClip
  88.     ITEM  "Print Clip..."      ""  PrintClip
  89.  
  90.   MENU  "Find"
  91.     ITEM  "Find..."            "F" OpenRequester FIND
  92.     ITEM  "Find Next"          "N" Find
  93.     ITEM  "Find & Replace..."  "R" OpenRequester FINDCHANGE
  94.     ITEM  "Replace Next"       "Y" FindChange
  95.     BAR
  96.     ITEM  "Goto Line..."       "L" Move
  97.     ITEM  "Match Bracket"      ""  MoveMatchBkt
  98.     BAR
  99.     ITEM  "Set Bookmark"       ""  Nop
  100.       SUB "# 1"                  ""  SetBookmark 1
  101.       SUB "# 2"                  ""  SetBookmark 2
  102.       SUB "# 3"                  ""  SetBookmark 3
  103.       SUB "# 4"                  ""  SetBookmark 4
  104.       SUB "# 5"                  ""  SetBookmark 5
  105.       SUB "# 6"                  ""  SetBookmark 6
  106.       SUB "# 7"                  ""  SetBookmark 7
  107.       SUB "# 8"                  ""  SetBookmark 8
  108.       SUB "# 9"                  ""  SetBookmark 9
  109.       SUB "# 10"                 ""  SetBookmark 10
  110.     ITEM  "Goto Bookmark"      ""  Nop
  111.       SUB "# 1"                  ""  MoveBookmark 1
  112.       SUB "# 2"                  ""  MoveBookmark 2
  113.       SUB "# 3"                  ""  MoveBookmark 3
  114.       SUB "# 4"                  ""  MoveBookmark 4
  115.       SUB "# 5"                  ""  MoveBookmark 5
  116.       SUB "# 6"                  ""  MoveBookmark 6
  117.       SUB "# 7"                  ""  MoveBookmark 7
  118.       SUB "# 8"                  ""  MoveBookmark 8
  119.       SUB "# 9"                  ""  MoveBookmark 9
  120.       SUB "# 10"                 ""  MoveBookmark 10
  121.  
  122.   MENU "Format"
  123.     ITEM  "Format Paragraph"   ""  FormatParagraph
  124.     ITEM  "Goto Paragraph"     ""  Nop
  125.       SUB  "Previous"          ""  ExecARexxMacro BED:Rexx/PrevParagraph
  126.       SUB  "Next"              ""  ExecARexxMacro BED:Rexx/NextParagraph
  127.     ITEM  "Documentize"        ""  ExecARexxMacro BED:Rexx/Documentize.bed
  128.     BAR
  129.     ITEM  "Left Justify"       ""  LeftJustify
  130.     ITEM  "Right Justify"      ""  RightJustify
  131.     ITEM  "L/R Justify"        ""  Justify
  132.     ITEM  "Center"             ""  Center
  133.     BAR
  134.     ITEM  "Tabs -> Spaces"     ""  Conv2Spaces
  135.     ITEM  "Spaces -> Tabs"     ""  Conv2Tabs
  136.     ITEM  "Remove EOL Blanks"  ""  StripEOLBlanks
  137.     BAR
  138.     ITEM  "Indent Block"       ""  ExecARexxMacro BED:Rexx/IndentBlk.bed
  139.     ITEM  "Unindent Block"     ""  ExecARexxMacro BED:Rexx/UnindentBlk.bed
  140.     BAR
  141.     ITEM  "Indent Line"        ""  ShiftRight TABS
  142.     ITEM  "Unindent Line"      ""  ShiftLeft TABS
  143.  
  144.   MENU  "Extras"
  145.     ITEM  "Undo Line"          "U" UndoLine
  146.     ITEM  "Undelete Line"      ""  UndeleteLine
  147.     BAR
  148.     ITEM  "Insert Current Date"   ""  ExecARexxString "Insert DATE();"
  149.     ITEM  "Insert Current Time"   ""  ExecARexxString "Insert TIME();"
  150.     ITEM  "Insert ASCII Char"     ""  SetChar
  151.     ITEM  "Insert Version String" ""  ExecARexxMacro BED:Rexx/InsertVersion.bed
  152.     BAR
  153.     ITEM  "Comment Block"      ""  ExecARexxMacro BED:Rexx/CommentBlk.bed
  154.     ITEM  "Number Lines"       ""  ExecARexxMacro BED:Rexx/NumberLines.bed
  155.     BAR
  156.     ITEM  "Word -> Lower Case" ""  Conv2Lower
  157.     ITEM  "Word -> Upper Case" ""  Conv2Upper
  158.     ITEM  "Toggle Char Case"   ""  ToggleCharCase
  159.     BAR
  160.     ITEM  "Encrypt Block"      ""  EncryptBlk
  161.  
  162.   MENU  "Macro"
  163.     ITEM  "Start Recording"    "G" RecordMacro
  164.     ITEM  "Stop Recording"     "H" EndMacro
  165.     BAR
  166.     ITEM  "Play Macro"         "M" PlayMacro 1
  167.     ITEM  "Play Many..."       "I" PlayMacro
  168.     BAR
  169.     ITEM  "Open Macro..."      ""  OpenMacro
  170.     ITEM  "Save Macro as..."   ""  SaveMacro
  171.  
  172.   MENU  "Tools"
  173.     ITEM  "New Shell..."       ""  NewShell
  174.     ITEM  "New Console..."     ""  ExecARexxMacro CONSOLE BED:Rexx/CmdShell.bed
  175.     BAR
  176.     ITEM  "Exec Tool..."       ""  ExecTool
  177.     ITEM  "Run Tool..."        ""  RunTool
  178.     ITEM  "Exec DOS Script..." ""  ExecDOSScript CONSOLE
  179.     BAR
  180.     ITEM  "Calculator"         ""  RunTool Calculator PUBSCREEN=Blacks_Editor
  181.     ITEM  "Multiview"          ""  RunTool Multiview
  182.     BAR
  183.     ITEM  "..."                ""  RunTool
  184.  
  185.   MENU "ARexx"
  186.     ITEM  "Exec ARexx Macro..."  ""  ExecARexxMacro
  187.     ITEM  "Exec ARexx String..." "K" ExecARexxString
  188.     BAR
  189.     ITEM  "AddChars"             ""  ExecARexxMacro BED:Rexx/AddChars.bed
  190.     ITEM  "CountWords"           ""  ExecARexxMacro BED:Rexx/CountWords.bed
  191.     ITEM  "ExecBlk"              ""  ExecARexxMacro CONSOLE BED:Rexx/ExecBlk.bed
  192.     ITEM  "PrintBlk"             ""  ExecARexxMacro BED:Rexx/PrintBlk.bed
  193.     ITEM  "RemoveBlankLines"     ""  ExecARexxMacro BED:Rexx/RemoveBlankLines.bed
  194.     ITEM  "SaveBlk"              ""  ExecARexxMacro BED:Rexx/SaveBlk.bed
  195.     ITEM  "SaveChangedDocs"      ""  ExecARexxMacro BED:Rexx/SaveChangedDocs.bed
  196.     ITEM  "SetConfig"            ""  ExecARexxMacro BED:Rexx/SetConfig.bed
  197.     ITEM  "ShowAG"               ""  ExecARexxMacro BED:Rexx/ShowAG.bed
  198.     ITEM  "SortBlk"              ""  ExecARexxMacro BED:Rexx/SortBlk.bed
  199.     ITEM  "UnSetLocks"           ""  ExecARexxMacro BED:Rexx/UnSetLocks.bed
  200.     BAR
  201.     ITEM  "..."                  ""  ExecARexxMacro
  202.  
  203.   MENU  "Settings"
  204.     ITEM  "Change Prefs"         ""  Nop
  205.       SUB "Auto-Save"              "1" OpenRequester AUTOSAVEPREFS
  206.       SUB "Backup"                 "2" OpenRequester BACKUPPREFS
  207.       SUB "Colors"                 "3" OpenRequester COLORPREFS
  208.       SUB "Display"                "4" OpenRequester DISPLAYPREFS
  209.       SUB "Edit"                   "5" OpenRequester EDITPREFS
  210.       SUB "End Of Lines"           "6" OpenRequester ENDOFLINEPREFS
  211.       SUB "Fonts"                  "7" OpenRequester FONTPREFS
  212.       SUB "Icons"                  "8" OpenRequester ICONPREFS
  213.       SUB "Miscellanea"            "9" OpenRequester MISCPREFS
  214.       SUB "Tabs"                   "0" OpenRequester TABPREFS
  215.     BAR
  216.     ITEM  "Open Prefs..."          ""  OpenPrefs
  217.     ITEM  "Save Prefs..."          ""  SavePrefs
  218.     ITEM  "Save Prefs As Defaults" ""  SaveDefPrefs
  219.     BAR
  220.     ITEM  "Open Definitions..."    ""  OpenDefinitions
  221.  
  222.   MENU "?"
  223.     ITEM  "About BED"            ""  About
  224.     BAR
  225.     ITEM  "Quick Reference"      ""  Help QuickReference
  226.     ITEM  "BED Menus"            ""  Help Standard_Menus
  227.     ITEM  "BED Commands"         ""  ExecARexxMacro BED:Rexx/BedCmdHelp.bed
  228.     BAR
  229.     ITEM  "BED Main Help"        ""  Help
  230. #
  231.  
  232.  
  233. ;------------------------------------------------------------------------------
  234. ;
  235. ;  Synopsis:
  236. ;
  237. ;    <qualifier>-<qualifier>-...-<keystroke>   <command> <arguments>
  238. ;
  239. ;    Valid qualifiers are:
  240. ;    - SHIFT
  241. ;    - CTRL
  242. ;    - ALT
  243. ;    - LEFT_AMIGA
  244. ;
  245. ;    Valid keystrokes are:
  246. ;    - RETURN
  247. ;    - ENTER
  248. ;    - BACKSPACE
  249. ;    - DEL
  250. ;    - TAB
  251. ;    - ESC
  252. ;    - HELP
  253. ;    - CURSOR_LEFT
  254. ;    - CURSOR_RIGHT
  255. ;    - CURSOR_UP
  256. ;    - CURSOR_DOWN
  257. ;    - F1
  258. ;    - ...
  259. ;    - F12
  260. ;    - NP_HOME
  261. ;    - NP_END
  262. ;    - NP_PGUP
  263. ;    - NP_PGDN
  264. ;    - NP_INS
  265. ;    - NP_DEL
  266. ;    - NP_CURSORUP
  267. ;    - NP_CURSORDOWN
  268. ;    - NP_CURSORLEFT
  269. ;    - NP_CURSORRIGHT
  270. ;    - NP_SCRL
  271. ;    - NP_PRTSC
  272. ;
  273. ;------------------------------------------------------------------------------
  274.  
  275. KEYBOARD:
  276.  
  277.   RETURN            InsertLine
  278.   ENTER             InsertLine INDENT
  279.   BACKSPACE         BackSpace
  280.   DEL               Delete
  281.   TAB               InsertTab
  282.   ESC
  283.   HELP              Help QuickReference
  284.  
  285.   CURSOR_UP         MoveUp
  286.   CURSOR_DOWN       MoveDown
  287.   CURSOR_RIGHT      MoveRight
  288.   CURSOR_LEFT       MoveLeft
  289.  
  290.   F1            OpenDoc
  291.   F2            OpenFile
  292.   F3            MoveMatchBkt
  293.   F4            ExecARexxMacro CONSOLE BED:Rexx/CmdShell.bed
  294.   F5            NewShell
  295.   F6            ExecARexxMacro BED:Rexx/PrevParagraph.bed
  296.   F7            ExecARexxMacro BED:Rexx/NextParagraph.bed
  297.   F8            ExecARexxMacro BED:Rexx/IndentBlk.bed
  298.   F9            SaveFile QUIET MODIFIED
  299.   F10           ActivateNextDoc FRONT
  300.  
  301.   SHIFT-RETURN      InsertLine NOBREAK
  302.   SHIFT-ENTER       InsertLine INDENT NOBREAK
  303.   SHIFT-BACKSPACE   DeleteSOW
  304.   SHIFT-DEL         DeleteEOW
  305.   SHIFT-TAB         InsertTab EXPAND
  306.   SHIFT-ESC
  307.   SHIFT-HELP        Help
  308.  
  309.   SHIFT-CURSOR_UP       MoveUpScr
  310.   SHIFT-CURSOR_DOWN     MoveDownScr
  311.   SHIFT-CURSOR_RIGHT    MoveNextWord
  312.   SHIFT-CURSOR_LEFT     MovePrevWord
  313.  
  314.   SHIFT-F1     Help
  315.   SHIFT-F2     OpenDoc FILEREQ
  316.   SHIFT-F3     UndoLine
  317.   SHIFT-F4     SetWindowSpec
  318.   SHIFT-F5     IconifyWindow TOGGLE
  319.   SHIFT-F6     FormatParagraph
  320.   SHIFT-F7     Justify
  321.   SHIFT-F8     ExecARexxMacro BED:Rexx/UnindentBlk.bed
  322.   SHIFT-F9     SaveFileAs
  323.   SHIFT-F10    ActivatePrevDoc FRONT
  324.  
  325.   ALT-RETURN      InsertLine INDENT NOBREAK
  326.   ALT-ENTER       InsertLine NOBREAK
  327.   ALT-BACKSPACE   DeleteSOL
  328.   ALT-DEL         DeleteEOL
  329.   ALT-TAB         MovePrevTabStop
  330.   ALT-ESC         CloseDoc
  331.   ALT-HELP
  332.  
  333.   ALT-CURSOR_UP         MoveSOF
  334.   ALT-CURSOR_DOWN       MoveEOF
  335.   ALT-CURSOR_RIGHT      MoveEOL
  336.   ALT-CURSOR_LEFT       MoveSOL
  337.  
  338.   ALT-F1        MoveBookmark 1
  339.   ALT-F2        MoveBookmark 2
  340.   ALT-F3        MoveBookmark 3
  341.   ALT-F4        MoveBookmark 4
  342.   ALT-F5        MoveBookmark 5
  343.   ALT-F6        MoveBookmark 6
  344.   ALT-F7        MoveBookmark 7
  345.   ALT-F8        MoveBookmark 8
  346.   ALT-F9        MoveBookmark 9
  347.   ALT-F10       MoveBookmark 10
  348.  
  349.   CTRL-RETURN       InsertLine INDENT
  350.   CTRL-ENTER        InsertLine
  351.   CTRL-BACKSPACE    DeleteLine
  352.   CTRL-DEL          DeleteLine
  353.   CTRL-TAB          MoveNextTabStop
  354.   CTRL-ESC          Quit
  355.   CTRL-HELP
  356.  
  357.   CTRL-CURSOR_UP        ScrollView -1 RELATIVE
  358.   CTRL-CURSOR_DOWN      ScrollView 1 RELATIVE
  359.   CTRL-CURSOR_RIGHT     ShiftRight
  360.   CTRL-CURSOR_LEFT      ShiftLeft
  361.  
  362.   CTRL-F1        SetBookmark 1
  363.   CTRL-F2        SetBookmark 2
  364.   CTRL-F3        SetBookmark 3
  365.   CTRL-F4        SetBookmark 4
  366.   CTRL-F5        SetBookmark 5
  367.   CTRL-F6        SetBookmark 6
  368.   CTRL-F7        SetBookmark 7
  369.   CTRL-F8        SetBookmark 8
  370.   CTRL-F9        SetBookmark 9
  371.   CTRL-F10       SetBookmark 10
  372.  
  373.   CTRL-R      SetPrefs ReadOnly       TOGGLE
  374.   CTRL-T      SetPrefs TabsGiveSpaces TOGGLE
  375.   CTRL-I      SetPrefs AutoIndent     TOGGLE
  376.   CTRL-F      SetPrefs FreeForm       TOGGLE
  377.   CTRL-O      SetPrefs Overstrike     TOGGLE
  378.   CTRL-W      SetPrefs WordWrap       TOGGLE
  379.   CTRL-J      SetPrefs JumpScroll     TOGGLE
  380.   CTRL-B      SetPrefs MakeBackups    TOGGLE
  381.   CTRL-K      SetPrefs IBMKeypad      TOGGLE
  382.  
  383.   CTRL-Q      SetQuoteMode ON
  384.  
  385.   CTRL-1      SetPrefs TEXTCOLOR
  386.   CTRL-2      SetPrefs BACKGROUNDCOLOR
  387.   CTRL-3      SetPrefs SELTEXTCOLOR
  388.   CTRL-4      SetPrefs SELBACKGROUNDCOLOR
  389.  
  390.   ALT-CTRL-CURSOR_LEFT     MoveSOW
  391.   ALT-CTRL-CURSOR_RIGHT    MoveEOW
  392.  
  393.   ALT-CTRL-DEL             DeleteEOW
  394.   ALT-CTRL-BACKSPACE       DeleteSOW
  395.  
  396.   NP_HOME         MoveSOF
  397.   NP_END          MoveEOF
  398.   NP_PGUP         ScrollView PAGEUP
  399.   NP_PGDN         ScrollView PAGEDOWN
  400.   NP_INS          SetPrefs OverStrike TOGGLE
  401.   NP_DEL          Delete
  402.   NP_CURSORUP     ScrollVert -1
  403.   NP_CURSORDOWN   ScrollVert 1
  404.   NP_CURSORLEFT   MoveLeft
  405.   NP_CURSORRIGHT  MoveRight
  406.   NP_SCRL         SetPrefs ReadOnly TOGGLE
  407.   NP_PRTSC        PrintFile
  408. #
  409.  
  410. ;------------------------------------------------------------------------------
  411. ;
  412. ;  Synopsis:
  413. ;
  414. ;    <mouse button>   <command> <arguments>
  415. ;
  416. ;    Valid mouse buttons are:
  417. ;
  418. ;    - DOUBLELEFT
  419. ;    - DOUBLEMIDDLE
  420. ;    - LEFTRIGHT
  421. ;    - LEFTMIDDLE
  422. ;    - MIDDLERIGHT
  423. ;    - MIDDLELEFT
  424. ;
  425. ;------------------------------------------------------------------------------
  426.  
  427. MOUSE_BUTTONS:
  428.  
  429.   LEFTMIDDLE
  430.   LEFTRIGHT               MarkBlk
  431.   MIDDLELEFT
  432.   MIDDLERIGHT
  433.   DOUBLELEFT              MarkBlk
  434.   DOUBLEMIDDLE
  435. #
  436.